<?php
class VmFieldtypeModel extends ModelIdName
{
    protected $resourceId = 'SystemResource';
	protected static $instance;

	public static function GetInstance()
	{
        return self::$instance ? self::$instance : self::$instance = new VmFieldtypeModel();
	}

    protected function LoadRows()
    {
        $config = VmConfig::GetInstance();
        $this->AddRow($config->FIELDTYPE_TEXTBOX,       'textbox');
        $this->AddRow($config->FIELDTYPE_SELECT,        'select');
        $this->AddRow($config->FIELDTYPE_CHECKBOX,      'checkbox');
        $this->AddRow($config->FIELDTYPE_DATEPICKER,    'date picker');
        $this->AddRow($config->FIELDTYPE_IMAGE,         'image');
        $this->AddRow($config->FIELDTYPE_TEXTAREA,      'textarea');
        $this->AddRow($config->FIELDTYPE_TREE,          'tree');
        $this->AddRow($config->FIELDTYPE_TREE_SELECT,   'tree select');
        $this->AddRow($config->FIELDTYPE_GRID_SELECT,   'grid select');
        $this->AddRow($config->FIELDTYPE_CURRENCY,      'currency');
        $this->AddRow($config->FIELDTYPE_HTML,          'html');
        $this->AddRow($config->FIELDTYPE_PASSWORD,      'password');
        $this->AddRow($config->FIELDTYPE_HTMLEDITOR,    'html editor');
    }
}
?>
